package com.ruoyi.project.order.domain;

import com.ruoyi.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.xml.crypto.Data;
import java.util.Date;

public class Order extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /*订单编号  主键*/
    private Long orderId;
    /*项目名称  可填写商品名称*/
    private String orderName;
    /*客户信息*/
    private String orderCustomer;
    /*项目总额*/
    private Double amount;
    /*配送方式*/
    private String distribution;
    /*销售人员*/
    private String salesman;
    /*订单类别*/
    private String orderType;

    /*部门负责人*/
    private String head;
    /*状态*/
    private String status;
    /*创建人*/
    private String create_by;
    /*创建时间*/
    private Date create_time;
    /*更新人*/
    private String update_by;
    /*更新时间*/
    private Date update_time;
    /*备注*/
    private String remark;


    @NotBlank(message = "订单编号不能为空")
    @Size(min = 0, max = 64, message = "订单编号长度不能超过64个字符")
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    @NotBlank(message = "项目名称不能为空")
    @Size(min = 0, max = 50, message = "项目名称长度不能超过50个字符")
    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }
    @NotBlank(message = "客户信息不能为空")
    @Size(min = 0, max = 30, message = "客户信息长度不能超过30个字符")
    public String getOrderCustomer() {
        return orderCustomer;
    }

    public void setOrderCustomer(String orderCustomer) {
        this.orderCustomer = orderCustomer;
    }
    @NotBlank(message = "项目总额不能为空")
    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getDistribution() {
        return distribution;
    }

    public void setDistribution(String distribution) {
        this.distribution = distribution;
    }
    @NotBlank(message = "销售人员不能为空")
    public String getSalesman() {
        return salesman;
    }

    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }
    @NotBlank(message = "订单类别不能为空")
    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    @NotBlank(message = "部门负责人不能为空")
    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCreate_by() {
        return create_by;
    }

    public void setCreate_by(String create_by) {
        this.create_by = create_by;
    }

    public String getUpdate_by() {
        return update_by;
    }

    public void setUpdate_by(String update_by) {
        this.update_by = update_by;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }
}
